package com.cch.cooperation.api.vip.controller;

import com.cch.cooperation.api.vip.service.VipSubscriptionPlanServiceImpl;
import com.cch.cooperation.common.web.response.Response;
import com.cch.cooperation.dao.vip.model.VipSubscriptionPlan;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "Vip订阅计划")
@RestController
@RequestMapping("/api/vip/subscription/plan")
public class VipSubscriptionPlanController {

    @Resource
    private VipSubscriptionPlanServiceImpl vipSubscriptionPlanService;

    @ApiOperation(value = "查询列表")
    @GetMapping("/queryList")
    public Response<List<VipSubscriptionPlan>> queryList() {
        List<VipSubscriptionPlan> data = vipSubscriptionPlanService.queryList();
        return Response.success(data);
    }

}
